#ifndef ALSA_OPT_H
#define ALSA_OPT_H

#include <string>


#include "MyQueue.h"

/*
    Compile Command: g++ main.cpp -o main -lasound
*/

#define PCM_PLAYBACK_DEV "hw:0,0"



int TestAlsaMain(int argc, char *argv[]);

int RecordAudio(const char *filename, int duration);
int PlayWavFile(const char *cstrFileName);
bool IsAudioFile(const std::string &strFileName);
void ShowHelpInfo(); 
void PrintWavFileInfo(const char * cstrFileName);
void play_selected_audio(const char *filename, int start_time, int duration);


int PlayAudioFromRecvList(AudioRecvAllSt &recvAllstObj);


#endif